<script>
    $(function () {
        $("#datepicker").datepicker({ dateFormat : 'dd-mm-yy' });
    });
</script>

<?php
/**
 * Created by JetBrains PhpStorm.
 * User: thinhhung
 * Date: 6/11/12
 * Time: 2:47 PM
 * To change this template use File | Settings | File Templates.
 */
echo $this->Form->create('PhieuChi', array('action' => 'edit')); ?>
<fieldset>
   <legend><label>Cập nhật phiếu chi</label></legend>
    <?php echo $this->Form->input('id', array('type' => 'hidden'));?>
    <dl>
        <dt><label>Mã nhân viên</label></dt>
        <dd><?php echo $this->Form->input('MANV', array('label' => false, 'value' => $this->Session->read('manhanvien'), 'readonly' => 'readonly')); ?></dd>
    </dl>
    <dl>
        <dt><label>Số tiền chi</label></dt>
        <dd><?php echo $this->Form->input('SOTIEN', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Lý do chi</label></dt>
        <dd><?php echo $this->Form->input('LYDO', array('label' => false, 'rows' => 3, 'cols' => 50, 'class' => 'txtarea')); ?></dd>
    </dl>
    <dl>
        <dt><label>Ngày lập phiếu</label></dt>
        <dd><?php echo $this->Form->input('NGAYCHI', array('id' => 'datepicker', 'type' => 'text' ,'label' => false)); ?></dd>
    </dl>
</fieldset>
<div class="button">
<?php
    echo $this->Form->submit('Sửa', array('div' => false));
    echo $this->Html->link('Hủy', array('action' => 'index'), array('class' => 'cancel'));
    echo $this->Form->end();
?>
</div>